/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package array;

/**
 *
 * @author michele1.marcazzan
 */
public class a1 {
    public static void main(String args[]) {
        int a1[] = new int [10];
        int a2[] = {1, 2, 3, 4, 5};
        int a3[] = {4, 3, 2, 1};
        System.out.println("lenght of 1 a1 is" + a1.length); //10
        System.out.println("lenght of a2 is" + a2.length); //5
        System.out.println("length of a is" + a3.length); //4  }}
        
        public class Main {
            public static void main(String args[]) {
                int days[] ={31, 28, 31,};
                System.out.println("days[2] is" + days[2]);  }}
        
               public class main {
        private static double result;
                   public static void main(String args[]) {
                       /*inserite la media dei vostri voti*/
                       double nums[] = {10.1, 11.2, 12.3, 13.4, 14.5};
                       double rtesult = 0;
                       int i;
                       for (i = 0; i < 5; i++)
                           result = result + nums [i];
                       System.out.println("Average is" + result / 5);  }}
               
               public class main  {
                   public static void main(String args[])  {
                       int days[] = {1, 2, 3,};
                       for(int i:days) {
                           System.out.println(i);}}}
}

